<template>
  <ReplaceComponentLayer>
    <template slot="component">
      <dn-select :value="value"
                 :options="options"
                 :placeholder="placeholder"
                 @input="handleInput" />
    </template>
  </ReplaceComponentLayer>
</template>

<script>
import ReplaceComponentLayer from '@packages/basic/ReplaceComponentLayer'
export default {
  name: "Select",
  props: {
    value: [Number, String],
    options: Array,
    placeholder: String
  },
  components: { ReplaceComponentLayer },
  data () {
    return {}
  },
  created () {
    console.log("=-==M<", this.options)
  },
  methods: {
    handleInput (value) {
      this.$emit("input", value);
    },
  }
};

</script>
